﻿using System;
using TomNet.App.Model.DTO;
using TomNet.SqlSugarCore.Entity;

namespace TomNet.App.Model.DB
{
    /// <summary>
    /// 商品
    /// </summary>
    public class Product : IdentityEntityBase<int>
    {
        public Product()
        {
        }
        /// <summary>
        /// 币种
        /// </summary>
        //public ProductType BType { get; set; }
        ///// <summary>
        ///// 单位数量
        ///// </summary>
        //public int Quantity { get; set; }
        ///// <summary>
        ///// 商品单位 T/G/K/M/P
        ///// </summary>
        //public ProductUnit ProductUnit { get; set; }
        ///// <summary>
        ///// 单价
        ///// </summary>
        //public decimal Price { get; set; }
        ///// <summary>
        ///// 电费
        ///// </summary>
        //public string ElectricityFees { get; set; }
        ///// <summary>
        ///// 库存
        ///// </summary>
        //public int Stock { get; set; }
        ///// <summary>
        ///// 商品说明
        ///// </summary>
        //public string Explain { get; set; }
        ///// <summary>
        ///// 升级商品
        ///// </summary>
        //public bool Upgrade { get; set; }
        //public long UpdateTime { get; set; }
        //public long CreateTime { get; set; }

        ///// <summary>
        ///// 购买期限
        ///// </summary>
        //public int Term { get; set; }
        public int HtId { get; set; }
        public string Title { get; set; }
        public string Name { get; set; }
        /// <summary>
        /// 算力
        /// </summary>
        public float Hashrate { get; set; }
        /// <summary>
        /// 商品单位 T/G/K/M/P
        /// </summary>
        //public ProductUnit ProductUnit { get; set; }
        /// <summary>
        /// 库存
        /// </summary>
        public int Inventory { get; set; }
        public float Kwh { get; set; }
        /// <summary>
        /// 电费
        /// </summary>
        public decimal ElectricCharge { get; set; }
        public string Image { get; set; }
        /// <summary>
        /// 价格
        /// </summary>
        public decimal Price { get; set; }
        public bool Visible { get; set; }
        public DateTime CreatedTime { get; set; }
        public string  Remark { get; set; }
        public bool Recommend { get; set; }
        public int Cycle { get; set; }
    }
}
